﻿Ext.define('GS.store.Institutions', {
    extend: 'Ext.data.Store',
    config: {
        storeId: 'institutions',
        model: 'GS.model.institution.Institution',

        fields: ['id', 'name'],

        proxy: {
            type: 'jsonp',
            url: GS.util.Config.getServerUrl() + 'GetInstitutions.php',
            reader: {
                type: 'json',
                rootProperty: 'items'
            }
        },

        autoLoad: true
    }
});